<template>
  <div>
    <div class="errorDiv">
      <span style="color:#1F2D3D;font-size:120px;">404</span>
      <br><br>
      <span style="color:#1F2D3D;font-size:50px;">NOT FOUND!</span>
      <br><br>
      <el-button type="text" @click="gotoIndex">返回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    gotoIndex() {
      this.$router.push({ path: '/home' })
    }
  }
}
</script>

<style>
.errorDiv {
  position: absolute;
  width: 500px;
  height: 300px;
  margin: auto 0;
  margin-top: -150px;
  margin-left: -250px;
  top: 50%;
  left: 50%;
  /*background: red;*/
}
.errorDiv .el-button {
  font-size: 18px;
}
</style>